﻿using System.Windows.Forms;

namespace ClownStopper
{
    public static class Extensions
    {

        public static void SetText(Control control, string text)
        {
            if (control.InvokeRequired)
            {
                control.BeginInvoke(
                    new MethodInvoker(
                        () => SetText(control,text)));
            }
            else
            {
                control.Text = text;
            }
        }
    }
}
